package com.ks.sprngcloud.order.controller;

import com.ks.springcloud.entity.CommonResult;
import com.ks.springcloud.entity.Payment;
import com.ks.sprngcloud.order.service.PaymentFeignService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author：Administrator
 * @Date：2022/4/7/0007 23:54
 * @Versiion：1.0
 */
@RestController
public class OrderController {

    @Resource
    private PaymentFeignService paymentFeignService;

    @GetMapping("/payment/{id}")
    public CommonResult<Payment> getPaymentById(@PathVariable Long id){
        return paymentFeignService.getPaymentById(id);
    }
}
